package tothreedesignmodel.flyweight;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author lzhphantom
 * @description
 * @date 创建于 17:35 2020/8/1
 * @modified
 */
@AllArgsConstructor
@Data
public class ConcreteFlyweight implements Flyweight{
    private String key;

    @Override
    public void operation(UnsharedConcreteFlyweight state) {
        System.out.println("key is "+getKey());
        System.out.println("outState is "+state.getInfo());
    }
}
